<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
	<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/default.css" />	
	<title><h:outputText value="Login" /></title>

</h:head>

<h:body>
	<center>
		<p:panel  id="panelLogin" header="Login" visible="true" >
			<h:form id="formLogin" name="formLogin">
				
				<p:growl id="mensagens" life="2000" showDetail="true"></p:growl>
				<h:panelGrid columns="2" cellpadding="5">
					<h:panelGrid columns="1" cellpadding="5">
						<p:graphicImage value="imagens/cadenas.png" />
					</h:panelGrid>
					<h:panelGrid columns="2" cellpadding="5">
						<h:outputText value="Login*" />
						<p:inputText value="#{controleAcessoMB.usuario.login}" maxlength="16" label="Login" required="true" />
						<h:outputText value="Senha* " />
						<p:password value="#{controleAcessoMB.usuario.senha}" maxlength="16" label="Senha" required="true" feedback="false" />
					</h:panelGrid>
				</h:panelGrid>
				<p:separator />
				<h:panelGrid columns="2">
					
					<p:commandButton value="Entrar" action="#{controleAcessoMB.logar}" ajax="false" update="mensagens" />
					<h:outputLabel id="version" value="WebCRM version=1.0" style="font-style: italic; margin-left:60px; font-size=15px;" />
				</h:panelGrid>

			</h:form>
		</p:panel>
	</center>
</h:body>

</html>
